package com.beans.indicator.event;

import com.beans.indicator.model.IndicatorModel;
import java.util.EventObject;

/**
 *
 * @author Wojtek
 */
public class CriticalValueEvent extends EventObject  {

    private IndicatorModel im;
    private boolean io;

    public CriticalValueEvent(Object source, boolean io) {
        super(source);
        this.im = (IndicatorModel) source;
        this.io = io;
    }

    public int getValue() {
        return im.getValue();
    }

    public boolean isCritical() {
        return io;
    }

}
